<template>
    <list-layout>
        <div slot="search">
            <el-form :model="queryParams" :inline="true" ref="queryForm" v-show="showSearch" label-width="88px">
                <el-form-item :label="$t('inventoryManagement.factory')" prop="factoryName">
                    <el-input v-model="queryParams.factoryName" :placeholder="$t('public.placeholder',{placeholder: $t('inventoryManagement.factory')})" clearable size="small" @keyup.enter.native="handleQuery" />
                </el-form-item>
                <el-form-item :label="$t('inventoryManagement.materialName')" prop="materialName">
                    <el-input v-model="queryParams.materialName" :placeholder="$t('public.placeholder',{placeholder: $t('inventoryManagement.materialName')})" clearable size="small" @keyup.enter.native="handleQuery" />
                </el-form-item>
                <el-form-item :label="$t('inventoryManagement.materialNo')" prop="materialCode">
                    <el-input v-model="queryParams.materialCode" :placeholder="$t('public.placeholder',{placeholder: $t('inventoryManagement.materialNo')})" clearable size="small" @keyup.enter.native="handleQuery" />
                </el-form-item>
                <!-- <el-form-item :label="$t('inventoryManagement.materialType')" prop="materialType">
                    <el-autocomplete style="width:100%" size="small" popper-class="my-autocomplete" v-model="queryParams.materialType" :fetch-suggestions="materialTypeRemoteMethod" placeholder="请输入内容" @select="(e)=>handleMaterialTypeSelect(e,scope)">
                        <i class="el-icon-search el-input__icon" slot="suffix">
                        </i>
                        <template slot-scope="{ item }">
                            {{ item.typeName }}
                        </template>
                    </el-autocomplete>
                </el-form-item> -->
                <el-form-item :label="$t('inventoryManagement.supplierNo')" prop="supplierCode">
                    <el-input v-model="queryParams.supplierCode" :placeholder="$t('public.placeholder',{placeholder: $t('inventoryManagement.supplierNo')})" clearable size="small" @keyup.enter.native="handleQuery" />
                </el-form-item>
                <el-form-item :label="$t('public.status')" prop="isUpdate">
                    <el-select v-model="queryParams.isUpdate" :placeholder="
              $t('public.select_holder', {
                select_holder: $t('public.status'),
              })
            " clearable style="width: 100%" size="small">
                        <el-option key="0" label="启用" value="0" />
                        <el-option key="1" label="禁用" value="1" />
                    </el-select>
                </el-form-item>

            </el-form>
            <div style="display:flex;justify-content: center;">
                <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">{{$t('public.search')}}</el-button>
                <el-button icon="el-icon-refresh" class="resectBtn" size="mini" @click="resetQuery">{{$t('public.reset')}}</el-button>
            </div>
        </div>
        <div class="app-container">
            <div class="container-header">
                <div class="header-left">
                    {{$t('inventoryManagement.inspectionExemption')}}
                </div>
            </div>
            <el-row :gutter="10" class="mb8 btnGroup">
                <el-col :span="1.5">
                    <el-button type="primary" icon="el-icon-plus" size="mini" @click="handleAdd" v-hasPermi="['ny-iqc:exemption:add']">{{$t('public.add')}}</el-button>
                </el-col>
                <el-col :span="1.5">
                    <el-button icon="el-icon-delete" size="mini" class="deleteitemBtn" @click="handleDelete">{{$t('public.delete')}}</el-button>
                </el-col>
                <!-- <el-col :span="1.5">
          <el-button
            class="importitemBtn"
            size="mini"
            @click="handleImport"

          ><img src="@/assets/images/icons/daoru.png" alt=""> {{$t('public.import')}}</el-button>
        </el-col> -->
                <el-col :span="1.5">
                    <el-button size="mini" class="exportitemBtn" @click="handleExport" v-hasPermi="['ny-iqc:exemption:export']"><img src="@/assets/images/icons/daochu.png" alt=""> {{$t('public.export')}}</el-button>
                </el-col>
                <!-- <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> -->
            </el-row>

            <div class="container-table">
                <el-table :height="tableHeight" border :row-class-name="tableRowClassName" v-loading="loading" :data="exemptionList" @selection-change="handleSelectionChange">
                    <el-table-column type="selection" width="55" align="center" />
                    <el-table-column :label="$t('inventoryManagement.materialNo')" width="140" align="left" prop="materialCode" :show-overflow-tooltip="true">
                    </el-table-column>
                    <el-table-column :label="$t('inventoryManagement.materialName')" width="140" align="left" prop="materialName" :show-overflow-tooltip="true" />
                    <el-table-column :label="$t('inventoryManagement.materialType')" align="left" width="70" prop="materialType" />

                    <el-table-column :label="$t('inventoryManagement.supplierNo')" align="left" prop="supplierCode" :show-overflow-tooltip="true" />
                    <el-table-column :label="$t('inventoryManagement.factory')" align="left" width="180" prop="factoryName" :show-overflow-tooltip="true" />
                    <el-table-column :label="$t('public.createTime')" align="left" prop="createTime" min-width="120" :show-overflow-tooltip="true" />
                    <el-table-column :label="$t('public.creator')" align="left" prop="createBy" min-width="120" :show-overflow-tooltip="true" />
                    <el-table-column :label="$t('inventoryManagement.inspectionExemptionReason')" align="left" prop="description" min-width="180" :show-overflow-tooltip="true" />
                    <el-table-column :label="$t('public.status')" align="left" prop="description" width="80" :show-overflow-tooltip="true">
                        <template slot-scope="scope">
                            <el-switch v-model="scope.row.isUpdate" active-color="#13ce66" @change="(e)=>updateStatus(e,scope.row)" inactive-color="#ff4949" active-value="0" inactive-value="1">
                            </el-switch>
                        </template>
                    </el-table-column>
                    <el-table-column :label="$t('public.opera')" fixed="right" align="center" width="120">
                        <template slot-scope="scope">
                            <div class="action-wrap">
                                <table-body-btn type="gwview" :name="$t('home.view')" @click.native="handleView(scope.row)" />
                                <table-body-btn type="gwedit" @click.native="handleEdit(scope.row)" />
                            </div>
                        </template>
                    </el-table-column>
                </el-table>

                <pagination v-show="total>0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" @pagination="getList" layout="total, sizes, prev, pager, next, jumper" />
            </div>

            <!-- 查看 -->
            <el-dialog title="查看" :visible.sync="viewInspectionExemption" center top="24vh" width="800px" append-to-body :fullscreen="fullscreen">
                <el-form :model="viewModel" ref="viewForm" label-width="145px">
                    <el-row :gutter="24" class="mb8">
                        <el-col :span="12">
                            <el-form-item :label="$t('inventoryManagement.materialName')" prop="materialName">
                                <el-input v-model="viewModel.materialName" disabled clearable size="small" @keyup.enter.native="handleQuery" />
                            </el-form-item>
                        </el-col>
                        <el-col :span="12">
                            <el-form-item :label="$t('inventoryManagement.materialNo')" prop="materialCode">
                                <el-input v-model="viewModel.materialCode" disabled clearable size="small" @keyup.enter.native="handleQuery" />
                            </el-form-item>
                        </el-col>
                        <!-- <el-col :span="12">
                            <el-form-item label="物料小类" prop="materialMin">
                                <el-input v-model="viewModel.materialMin" disabled clearable size="small" />
                            </el-form-item>
                        </el-col> -->
                        <el-col :span="12">
                            <el-form-item :label="$t('inventoryManagement.supplierName')" prop="supplierName">
                                <el-input v-model="viewModel.supplierName" disabled clearable size="small" @keyup.enter.native="handleQuery" />
                            </el-form-item>
                        </el-col>
                        <el-col :span="12">
                            <el-form-item :label="$t('inventoryManagement.supplierNo')" prop="supplierCode">
                                <el-input v-model="viewModel.supplierCode" disabled clearable size="small" @keyup.enter.native="handleQuery" />
                            </el-form-item>
                        </el-col>
                        <el-col :span="12">
                            <el-form-item :label="$t('inventoryManagement.factory')" prop="factoryName">
                                <el-select filterable v-model="viewModel.factoryName" transfer disabled :placeholder="$t('public.select_holder',{select_holder: $t('inspectionManagement.plantArea')})" style="width:100%;" clearable size="small">
                                    <el-option v-for="(item) in factoryList" :key="item.factoryName" :label="item.factoryName" :value="item.factoryName" />
                                </el-select>
                            </el-form-item>
                        </el-col>
                        <el-col :span="24">
                            <el-form-item :label="$t('inventoryManagement.inspectionExemptionReason')" prop="inspectionExemptionReason">
                                <el-input type="textarea" disabled :autosize="{ minRows: 3, maxRows: 6}" v-model="viewModel.description" maxlength="1000">
                                </el-input>
                            </el-form-item>
                        </el-col>
                        <el-col :span="24">
                            <el-form-item :label="$t('inventoryManagement.uploadAttachments')" prop="uploadAttachments">
                                <file-upload ref="exemptionUpload" v-model="viewModel.uploadAttachments" @change="fileChange"></file-upload>
                            </el-form-item>
                        </el-col>

                    </el-row>

                </el-form>
                <div slot="footer" class="dialog-footer">
                    <el-button icon="el-icon-close" size="mini" @click="viewInspectionExemption=false" class="drawer-close">{{$t('public.close')}}</el-button>
                </div>
            </el-dialog>

            <!-- 新增 -->
            <el-dialog :title="title" :visible.sync="addInspectionExemption" center top="24vh" width="800px" append-to-body :fullscreen="fullscreen">
                <el-form :model="addModel" :rules="rules" ref="addForm" label-width="145px">
                    <el-row :gutter="24" class="mb8">
                        <el-col :span="12">
                            <el-form-item :label="$t('inventoryManagement.materialName')" prop="materialName">
                                <material-dialog v-model="addModel.materialName" @callback="(row)=>materialDataCallback(row)" />
                                <!-- <el-input :placeholder="$t('public.placeholder',{placeholder: $t('inventoryManagement.materialName')})" v-model="addModel.materialName" clearable size="small" @keyup.enter.native="handleQuery" /> -->
                            </el-form-item>
                        </el-col>
                        <el-col :span="12">
                            <el-form-item :label="$t('inventoryManagement.materialNo')" prop="materialCode">
                                <el-input :placeholder="$t('public.placeholder',{placeholder: $t('inventoryManagement.materialNo')})" v-model="addModel.materialCode" clearable size="small" @keyup.enter.native="handleQuery" />
                            </el-form-item>
                        </el-col>
                        <!-- <el-col :span="12">
                            <el-form-item label="物料小类" prop="materialMin">
                                <el-input v-model="addModel.materialMin" :placeholder="$t('public.placeholder',{placeholder: '物料小类'})" size="small" disabled />
                            </el-form-item>
                        </el-col> -->

                        <el-col :span="12">
                            <el-form-item :label="$t('inventoryManagement.supplierName')" prop="supplierName">
                                <supplier-dialog v-model="addModel.supplierName" @callback="(row)=>supplierDataCallback(row)" />
                            </el-form-item>
                        </el-col>
                        <el-col :span="12">
                            <el-form-item :label="$t('inventoryManagement.supplierNo')" prop="supplierCode">
                                <el-input v-model="addModel.supplierCode" :placeholder="$t('public.placeholder',{placeholder: $t('inventoryManagement.supplierNo')})" clearable size="small" @keyup.enter.native="handleQuery" />
                            </el-form-item>
                        </el-col>
                        <el-col :span="12">
                            <el-form-item :label="$t('inventoryManagement.factory')" prop="factoryName">
                                <el-select filterable v-model="addModel.factoryName" transfer :placeholder="$t('public.select_holder',{select_holder: $t('inspectionManagement.plantArea')})" style="width:100%;" clearable size="small">
                                    <el-option v-for="(item) in factoryList" @click.native="changeFactory(item)" :key="item.plantName" :label="item.plantName" :value="item.plantName" />
                                </el-select>
                            </el-form-item>
                        </el-col>
                        <el-col :span="12">
                            <el-form-item :label="$t('public.status')" prop="isUpdate">
                                <el-select v-model="addModel.isUpdate" :placeholder="
              $t('public.select_holder', {
                select_holder: $t('public.status'),
              })
            " clearable style="width: 100%" size="small">
                                    <el-option key="0" label="启用" value="0" />
                                    <el-option key="1" label="禁用" value="1" />
                                </el-select>
                            </el-form-item>
                        </el-col>

                        <el-col :span="24">
                            <el-form-item :label="$t('inventoryManagement.inspectionExemptionReason')" prop="description">
                                <el-input type="textarea" :autosize="{ minRows: 3, maxRows: 6}" :placeholder="$t('public.placeholder',{placeholder: $t('inventoryManagement.inspectionExemptionReason')})" v-model="addModel.description" maxlength="1000">
                                </el-input>
                            </el-form-item>
                        </el-col>
                        <el-col :span="24">
                            <el-form-item :label="$t('inventoryManagement.uploadAttachments')" prop="uploadAttachments" style="width:100%">
                                <file-upload ref="exemptionUpload" v-model="addModel.uploadAttachments" @change="fileChange"></file-upload>
                            </el-form-item>
                        </el-col>

                    </el-row>

                </el-form>
                <div slot="footer" class="dialog-footer">
                    <el-button type="primary" @click="submitForm" icon="el-icon-check" size="small">{{$t('public.save')}}</el-button>
                </div>
            </el-dialog>
        </div>
    </list-layout>
</template>

<script>
import {
    listType,
    getType,
    delType,
    addType,
    updateType,
    refreshCache,
} from '@/api/basic/dict/type'
import { listMaterialType } from '@/api/basic/materialtype'

import {
    getExemptionList,
    addExemption,
    deleteExemption,
    updateStatus,
    UpdateExemption,
} from '@/api/inventoryManagement/inspectedInventory'
import { listFactory } from '@/api/basic/factory'
import FileUploadInput from '@/components/FileUploadInput'
import SupplierDialog from '@/views/components/SupplierDialog'
import MaterialDialog from '@/views/components/MaterialDialog'
import { mapGetters, mapState } from 'vuex'
export default {
    name: 'inspectionExemption',
    dicts: ['sys_normal_disable'],
    components: {
        FileUploadInput,
        SupplierDialog,
        MaterialDialog,
    },
    computed: {
        ...mapState({
            isFold: (state) => state.app.isFold,
        }),
    },
    watch: {
        isFold(val) {
            if (val === true) {
                this.tableHeight = 'calc(100vh - 308px)'
            } else {
                this.tableHeight = 'calc(100vh - 396px)'
            }
        },
    },
    data() {
        return {
            direction: 'rtl',
            addInspectionExemption: false,
            title: '新增',
            factoryList: [],
            materialTypeList: [],
            tableHeight: 'calc(100vh - 308px)',
            viewInspectionExemption: false,
            addModel: {
                isUpdate: '0',
                factoryName: null,
                factoryCode: null,
                supplierName: null,
                supplierCode: null,
                materialName: null,
                materialCode: null,
                materialType: null,
            },
            viewModel: {
                file: 'xxx.jpeg',
                supplierName: null,
                supplierCode: null,
                materialName: null,
                materialCode: null,
                materialType: null,
            },
            editModel: {},
            approvalForm: {
                materialName: '',
                materialCode: '',
                materialType: '',
                supplierCode: '',
                factoryName: '',
                description: '',
                uploadAttachments: '',
            },
            selBtn: 1,
            // 遮罩层
            loading: true,
            // 选中数组
            ids: [],
            fileList: [],
            // 非单个禁用
            single: true,
            // 非多个禁用
            multiple: true,
            // 显示搜索条件
            showSearch: true,
            // 总条数
            total: 0,
            // 字典表格数据
            exemptionList: [],
            // 弹出层标题
            title: '',
            // 是否显示弹出层
            open: false,
            // 日期范围
            dateRange: [],
            // 查询参数
            queryParams: {
                pageNum: 1,
                pageSize: 20,
                factoryName: undefined,
                materialName: undefined,
                materialCode: undefined,
                supplierCode: undefined,
                isUpdate: undefined,
                materialType: undefined,
            },
            // 表单参数
            form: {},
            // 表单校验
            rules: {
                materialName: [
                    {
                        required: true,
                        message: this.$t('formValidation.materialNameCannotBeEmpty'),
                        trigger: 'change',
                    },
                ],
                materialCode: [
                    {
                        required: true,
                        message: '物料编号不能为空',
                        trigger: 'blur',
                    },
                ],
                materialType: [
                    {
                        required: true,
                        message: '物料大类不能为空',
                        trigger: 'change',
                    },
                ],
                factoryName: [
                    {
                        required: true,
                        message: this.$t('formValidation.factoryAreaCannotBeEmpty'),
                        trigger: 'change',
                    },
                ],
            },
            fullscreen: false,
        }
    },
    created() {
        this.getList()
        this.getFactoryList()
        this.listMaterialType()
    },
    methods: {
        changeFactory(item) {
            this.addModel.factoryName = item.plantName
            this.addModel.factoryCode = item.plantCode
        },
        materialTypeRemoteMethod(val, cb) {
            listMaterialType({ typeName: val }).then((res) => {
                cb(res.rows)
            })
        },
        handleMaterialTypeSelect(e, scope) {
            // this.dialogForm.materialType = e
            this.queryParams.materialType = e.typeName
            this.$forceUpdate()
        },
        materialDataCallback(row) {
            this.addModel.materialName = row.materialName
            this.addModel.materialCode = row.materialCode
            this.addModel.materialType = row.materialType
            this.addModel.materialMin = row.groupingCode
            this.addModel.materialTypeName = row.materialTypeName
            this.$refs['addForm'].clearValidate(['materialCode'])
        },
        supplierDataCallback(row) {
            this.addModel.supplierName = row.supplierName
            this.addModel.supplierCode = row.supplierCode
        },
        updateStatus(e, row) {
            let data = { ...row }
            if (data.isUpdate === '0') {
                data.isUpdate === '1'
            } else {
                data.isUpdate === '0'
            }
            updateStatus(data).then((res) => {
                this.getList()
            })
        },
        listMaterialType() {
            listMaterialType().then((res) => {
                this.materialTypeList = res.rows
            })
        },
        getFactoryList() {
            listFactory().then((res) => {
                this.factoryList = res.rows
            })
        },
        fileChange(e) {
            this.fileList = e
            console.log(e)
        },
        drawerClose() {
            this.drawer = false
        },
        /** 查询字典类型列表 */
        getList() {
            this.loading = true
            getExemptionList(this.queryParams).then((response) => {
                if (response.code == 200 && response.rows) {
                    this.exemptionList = response.rows
                    this.total = response.total
                    this.loading = false
                }
            })
        },
        // 取消按钮
        cancel() {
            this.open = false
            this.reset()
        },
        // 表单重置
        reset() {
            this.form = {
                dictId: undefined,
                dictName: undefined,
                dictType: undefined,
                status: '0',
                remark: undefined,
            }
            this.resetForm('form')
        },
        /** 搜索按钮操作 */
        handleQuery() {
            this.queryParams.pageNum = 1
            this.getList()
        },
        /** 重置按钮操作 */
        resetQuery() {
            this.dateRange = []
            this.resetForm('queryForm')
            this.handleQuery()
        },
        /** 新增按钮操作 */
        handleAdd() {
            this.resetForm('addForm')
            this.$refs.exemptionUpload &&
                this.$refs.exemptionUpload.clearFiles()
            this.fileList = []
            this.addInspectionExemption = true
            this.title = '新增'
        },
        // 多选框选中数据
        handleSelectionChange(selection) {
            this.ids = selection.map((item) => item.id)
            this.exemptionList.forEach((io, index) => {
                console.log('includes', this.ids.includes(io.id))
                if (this.ids.includes(io.id)) {
                    io.isHighLight = true
                } else {
                    io.isHighLight = false
                }
            })
            this.single = selection.length != 1
            this.multiple = !selection.length
        },
        tableRowClassName({ row, rowIndex }) {
            console.log('rowIndex', rowIndex, row)
            if (row.isHighLight === true) {
                console.log('rowIndex', row)
                return 'rowHighLight' //若isHighLight为true，则使用“rowHighLight”样式
            } else {
                return ''
            }
        },
        /** 修改按钮操作 */
        handleUpdate(row) {
            this.reset()
            const dictId = row.dictId || this.ids
            getType(dictId).then((response) => {
                this.form = response.data
                this.open = true
                this.title = '修改字典类型'
            })
        },
        /** 提交按钮 */
        submitForm: function () {
            this.$refs['addForm'].validate((valid) => {
                if (valid) {
                    let params = { ...this.addModel }
                    let fileId = []
                    this.fileList.forEach((io) => {
                        fileId.push(io.id)
                    })
                    params.fileId = fileId.join(',')
                    if (this.title === '新增') {
                        addExemption(params).then((response) => {
                            this.$modal.msgSuccess('提交成功!')
                            this.addInspectionExemption = false
                            this.resetForm('addForm')
                            this.$refs.exemptionUpload.clearFiles()
                            this.fileList = []
                            this.getList()
                        })
                    } else {
                        UpdateExemption(params).then((response) => {
                            this.$modal.msgSuccess('提交成功!')
                            this.addInspectionExemption = false
                            this.resetForm('addForm')
                            this.$refs.exemptionUpload.clearFiles()
                            this.fileList = []
                            this.getList()
                        })
                    }
                } else {
                    console.log('error submit!!')
                    return false
                }
            })
        },
        /** 发起检验提交 */
        submitAddForm: function () {
            this.$modal.msgSuccess('发起成功!')
            this.addInspection = false
        },

        /** 删除按钮操作 */
        handleDelete(row) {
            if (this.ids.length === 0) {
                this.$modal.msgWarning('请至少选择一条免检单!')
                return
            }
            this.$modal
                .confirm('是否确认删除选中的免检单？')
                .then(() => {
                    deleteExemption(this.ids.join(',')).then((response) => {
                        this.$modal.msgSuccess(this.$t('tips.deleteSuccess'))
                        this.getList()
                    })
                })
                .catch(() => {})

            //   const dictIds = row.noticeId || this.ids;
            //   this.$modal.confirm('是否确认删除消息编号为"' + 1 + '"的数据项？').then(function() {
            //     this.$modal.msgSuccess("删除成功");
            //   }).then(() => {
            //     this.getList();
            //     this.$modal.msgSuccess("删除成功");
            //   }).catch(() => {});
        },
        /** 查看按钮操作 */
        handleView(row) {
            this.viewModel = row
            this.viewInspectionExemption = true
            //   if(row.hasRead == 0){
            //     readNotice(row.noticeId).then(res=>{
            //       if(res.code == 200){
            //         this.handleQuery()
            //       }
            //     })
            //   }
        },
        /** 编辑按钮操作 */
        handleEdit(row) {
            console.log(row)
            this.title = this.$t("public.edit")
            this.addModel = { ...row }
            this.addInspectionExemption = true
        },
        /** 关闭抽屉操作 */
        handleClose(row) {
            this.drawer = false
        },
        /** 导出按钮操作 */
        handleExport() {
            this.download(
                'ny-iqc/exemption/export',
                {
                    ...this.queryParams,
                },
                `type_${new Date().getTime()}.xlsx`
            )
        },
        /** 刷新缓存按钮操作 */
        handleRefreshCache() {
            refreshCache().then(() => {
                this.$modal.msgSuccess('刷新成功')
            })
        },
    },
}
</script>
<style lang="scss" scoped>
::v-deep .el-card {
    padding-top: 20px;
    border: 0px;
    box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    padding-bottom: 20px;
}
::v-deep .el-aside {
    padding: 0;
    margin-bottom: 0;
}
.content-style {
    border: 0px;
    box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.08);
    border-radius: 2px;
    background-color: white;
    margin-top: 10px;
}
::v-deep .el-button-group .selBtn {
    background: #fff;
    border: 1px solid #0b7be3;
    color: #0b7be3;
}
::v-deep .el-button-group .unselBtn {
    background: #fff;
    border: 1px solid #ededf2;
    color: #666666;
}
.header-left {
    float: left;
    font-size: 14px;
    font-family: PingFangSC-Semibold, PingFang SC;
    font-weight: 600;
    color: #333333;
    line-height: 40px;
    display: flex;
    justify-content: center;
    border-bottom: 2px solid #0b7be3;
}
.header-right {
    float: right;
}
.container-header {
    float: left;
    width: 100%;
    border-bottom: 1px solid #ededf2;
}
.container-table {
    float: left;
    margin-top: 6px;
    width: 100%;
}
.mb8 {
    float: left;
    margin-top: 6px;
    width: 100%;
}
.drawer-footer {
    display: flex;
    position: relative;
    z-index: 9999;
    bottom: -40px;
    height: 40px;
    justify-content: center;
    width: 100%;
}
.drawer-close {
    background: #f7f8fa;
    border-color: #f7f8fa;
}
::v-deep .rowHighLight {
    background: oldlace;
}
</style>
